/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "设备状态表",TableName = "equipmentstatuslogs",DBServer = "SmesDbContext")]
    public partial class equipmentstatuslogs:SmesEntity
    {
        /// <summary>
       ///状态记录唯一标识
       /// </summary>
       [Key]
       [Display(Name ="状态记录唯一标识")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string StatusID { get; set; }

       /// <summary>
       ///设备ID（外键关联设备表）
       /// </summary>
       [Display(Name ="设备ID（外键关联设备表）")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string EquipmentID { get; set; }

       /// <summary>
       ///设备状态类型：运行/待机/故障/维护/关机
       /// </summary>
       [Display(Name ="设备状态类型：运行/待机/故障/维护/关机")]
       [MaxLength(11)]
       [Column(TypeName="nvarchar(11)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string StatusType { get; set; }

       /// <summary>
       ///状态值（如温度、转速等动态参数）
       /// </summary>
       [Display(Name ="状态值（如温度、转速等动态参数）")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string StatusValue { get; set; }

       /// <summary>
       ///状态开始时间
       /// </summary>
       [Display(Name ="状态开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? StartTime { get; set; }

       /// <summary>
       ///状态结束时间
       /// </summary>
       [Display(Name ="状态结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? EndTime { get; set; }

       /// <summary>
       ///状态触发来源：自动检测/人工操作/系统指令
       /// </summary>
       [Display(Name ="状态触发来源：自动检测/人工操作/系统指令")]
       [MaxLength(6)]
       [Column(TypeName="nvarchar(6)")]
       [Editable(true)]
       public string TriggerSource { get; set; }

       /// <summary>
       ///备注信息
       /// </summary>
       [Display(Name ="备注信息")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Comments { get; set; }

       
    }
}